package cn.ds.assets.module.assets.controller.admin.metadataModelBase.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.ds.assets.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import java.time.LocalDate;

import static cn.ds.assets.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 元数据管理-元模型-基础属性分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class BaseMetadataModelBasePageReqVO extends PageParam {

    @Schema(description = "主键ID")
    private Long[] ids;

    @Schema(description = "元模型编码")
    private String code;

    @Schema(description = "元模型名称", example = "王五")
    private String name;

    @Schema(description = "元模型类型,1.指标类,2.字段类,3.表级类,4.数据库类,5.应用类,6.模型类", example = "1")
    private Byte type;

    @Schema(description = "适用数据形态,1.指标,2.字段,3.表,4.数据库,5.应用,6.模型")
    private Byte dataForm;

    @Schema(description = "元模型状态,0.启用,1.禁用", example = "2")
    private Boolean status;

    @Schema(description = "元模型描述")
    private String desc;

    @Schema(description = "删除标志,0.未删除,1.已删除")
    private Boolean del;

    @Schema(description = "创建人")
    private Long createBy;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "更新人")
    private Long updateBy;

}
